<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/meirongtest/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/meirongtest/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/global.js'></script>
<link href='/meirongtest/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirongtest/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/operamasks-ui.min.js"></script>

<!-- JS -->
<script type="text/javascript" src="/meirongtest/Public/Member/js/beauty.js"></script>

<!-- 日历插件 -->
<link href='/meirongtest/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/daterangepicker.js'></script>

<!-- 编辑器插件 -->
<!-- <link rel="stylesheet" type="text/css" href="/meirongtest/Public/Member/css/editor.css">
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/zh-cn.js"></script> -->

<script type='text/javascript'>
var web_domain='/meirongtest';
var static_domain='/meirongtest';
var img_domain='/meirongtest';
var _PUBLIC_ = '/meirongtest/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script language="javascript">
     $(document).ready(beauty_obj.beautician_add); 
</script>


</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<!-- <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					 -->
					<li class="<?php if((ACTION_NAME) == "beautician"): ?>cur<?php endif; ?>"><a href="<?php echo U('Beautician/beautician');?>">美容师列表</a></li>
					
				</ul>
			</div>

		
		

			
	<div id="scratch" class="r_con_wrap">
		<form id="beautician_form" class="r_con_form">
		
			<div class="rows">
		        <label>昵称</label>
		        <span class="input">&nbsp;<?php echo ($beautician["nickname"]); ?></span>
		        <div class="clear"></div>
	   		</div>
			
			<div class="rows">
				<label>姓名</label>
				<span class="input">
		        	<input type="text" name="Name" value="<?php echo ($beautician["name"]); ?>" class="form_input" size="35" maxlength="100" notnull=""> 
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			
			<div class="rows">
				<label>美容师联系方式</label>
				<span class="input">
		        	<input type="text" name="Linktel" value="<?php echo ($beautician["linktel"]); ?>" class="form_input" size="30" notnull="">
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>所属地区</label>
				<span class="input">
		        	<select name="Regional" notnull="">
				        <option value="">--请选择--</option>
				        <?php if(is_array($regionalList)): $i = 0; $__LIST__ = $regionalList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["name"]); ?>" <?php if(($beautician["regional"]) == $vo["name"]): ?>selected<?php endif; ?>>├<?php echo ($vo["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?> 
			        </select>
			        <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>美容师头像</label>
				<span class="input">
					<span class="upload_file">
						<div>
							<div class="up_input">
							    <input name="ImgUpload" id="ImgUpload" type="file" width="120" height="30" style="display: none;">
							</div>
							<input type="hidden" name="ImgPath" value="<?php echo ($beautician["imgpath"]); ?>">
							<div class="tips">图片宽度建议：280x200px</div><br/>
							<div class="clear"></div>
						</div>
						<div class="img" id="ImgDetail">
						<?php if($beautician['imgpath'] != null): ?><a href="<?php echo ($beautician["imgpath"]); ?>" target="_blank">
			                    <img src="<?php echo ($beautician["imgpath"]); ?>">
			                </a><?php endif; ?>
						</div>
					
					</span>
				</span>
			<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>可接单项目</label>
				<span class="input">
					<?php if(is_array($projectList)): $i = 0; $__LIST__ = $projectList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><input name="ProjectId[]" value="<?php echo ($vo["id"]); ?>" type="checkbox" id="project_id" <?php if(in_array(($vo['id']), is_array($beautician['projectid'])?$beautician['projectid']:explode(',',$beautician['projectid']))): ?>checked='checked'<?php endif; ?>><?php echo ($vo["project_name"]); endforeach; endif; else: echo "" ;endif; ?>
			        <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>每月任务量</label>
				<span class="input">
		        	<input type="text" name="Tasknum" value="<?php echo ($beautician["tasknum"]); ?>" class="form_input" size="30" notnull="">
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>预约内容设置</label>
				<span class="input">
					<div class="tips">填写你要收集的内容，预约默认选项不可以修改删除！</div>
					<table border="0" cellpadding="5" cellspacing="0" class="reverve_field_table">
						<thead>
							<tr>
								<td width="16%">不可预约时间</td>
								<td width="32%">字段内容</td>
								<td width="20%">操作</td>
							</tr>
						</thead>
						<tbody> 								
							<tr style="display:;" fieldtype="text" mid="1">
								<td>不可预约时间1：</td>
								<td><span class="notime"><input type="text" class="form_input" size="55" value="<?php echo ($beautician['cannottime'][0]['timerange']); ?>" name="Notime[]"></span></td>
								<td>
		                        	<a href="javascript:void(0);" class="input_add"><img src="/meirongtest/Public/Member/images/ico/add.gif"></a>
		                        </td>
							</tr>
							<?php if(is_array($beautician["cannottime"])): $i = 0; $__LIST__ = $beautician["cannottime"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo['number'] > 1): ?><tr style="display:;" fieldtype="text" mid="<?php echo ($vo["number"]); ?>">
										<td>不可预约时间<?php echo ($vo["number"]); ?>：</td>
										<td><span class="notime"><input type="text" class="form_input"  size="55" value="<?php echo ($vo["timerange"]); ?>" name="Notime[]"></span></td>											
										<td>
				                            <a href="javascript:void(0);" class="input_del"><img src="/meirongtest/Public/Member/images/ico/del.gif"></a>		                                    
				                        </td>
									</tr><?php endif; endforeach; endif; else: echo "" ;endif; ?> 
						</tbody>
					</table>
				</span>
				<div class="clear"></div>
			</div>
				
			<div class="rows">
		        <label>美容师设置的不可预约时间</label>
		        <span class="input">
			        <?php if(is_array($beautician["b_notime"])): $i = 0; $__LIST__ = $beautician["b_notime"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; echo ($vo); ?><br/><?php endforeach; endif; else: echo "" ;endif; ?>
		        </span>
		        <div class="clear"></div>
	   		</div>
	   			
			<div class="rows">
		        <label>详细描述</label>
		        <span class="input"><textarea name="Description" class="briefdesc" notnull=""><?php echo ($beautician["description"]); ?></textarea>
		        <font class="fc_red">*</font></span>
		        <div class="clear"></div>
	   		</div>
       		
			<div class="rows">
		        <label>服务评分</label>
		        <span class="input">&nbsp;<?php echo ($beautician["service"]); ?></span>
		        <div class="clear"></div>
	   		</div>
	   		
	   		<div class="rows">
		        <label>技术评分</label>
		        <span class="input">&nbsp;<?php echo ($beautician["skill"]); ?></span>
		        <div class="clear"></div>
	   		</div>
	   		
	   		<div class="rows">
		        <label>礼仪评分</label>
		        <span class="input">&nbsp;<?php echo ($beautician["ceremony"]); ?></span>
		        <div class="clear"></div>
	   		</div>
	   		
	   		<div class="rows">
		        <label>综合好评</label>
		        <span class="input">&nbsp;<?php echo ($beautician["composite"]); ?>%</span>
		        <div class="clear"></div>
	   		</div>
	   		
	   		<div class="rows">
		        <label>接单数</label>
		        <span class="input">&nbsp;<?php echo ($beautician["ordernumber"]); ?></span>
		        <div class="clear"></div>
	   		</div>
	   		
	   		
	
			<div class="rows">
				<label></label>
				<span class="input">
		        	<input type="button" class="btn_ok" name="submit_button" value="提交保存">
		        	<a href="<?php echo U('beautician');?>" class="btn_cancel">返回</a>
		         </span>
				<div class="clear"></div>
			</div>
		
		<input type="hidden" id="do_action" value="<?php echo U('Beautician/beauticianAdd');?>">
		<input type="hidden" id="link_jump" value="<?php echo U('Beautician/beautician');?>">
		<input type="hidden" name="id" value="<?php echo ($beautician["id"]); ?>">
		</form>
	</div>
		<div id="turn_page">
		<?php echo ($page); ?>
	</div>

			
			</div>
			</div>
</body>
</html>